package me.zhengjie.modules.management.service;


import me.zhengjie.modules.management.domain.ConferenceRecord;
import me.zhengjie.modules.management.domain.ConferenceRoom;
import me.zhengjie.modules.management.domain.Pageable;
import me.zhengjie.modules.management.service.dto.*;

import java.math.BigDecimal;
import java.sql.Timestamp;
import java.text.ParseException;
import java.util.List;
import java.util.Map;

/**
 * @Author: yuchao.wang
 * @Date: 2020/12/15
 * @Description: 预约记录Service
 */
public interface ConferenceRecordService {

    /**
     * 查询预约记录
     *
     * @param conferenceRecordQueryCriteria
     * @return me.zhengjie.modules.management.domain.ConferenceRecord
     */
    Map<String, Object> searchRecord(ConferenceRecordQueryCriteria conferenceRecordQueryCriteria, Pageable pageable);

    /**
     * 查询预约报表
     *
     * @param conferenceRecordQueryCriteria
     * @return me.zhengjie.modules.management.domain.ConferenceRecord
     */
    Map<String, Object> queryByCriteria(ConferenceRecordQueryCriteria conferenceRecordQueryCriteria, Pageable pageable);

    /**
     * 创建
     *
     * @param resources
     * @return void
     */
    void create(RecordDto resources);

    /**
     * 编辑
     *
     * @param resources
     * @return void
     */
    void update(ConferenceRecordDto resources);
    /**
     * 根据ID查找预约记录（带物资详细信息）
     *
     * @param recordId
     * @return ConferenceRecord
     */
    List<RecordDto> findById(Integer recordId)  ;

    /**
     * 查找当天未过期的会议记录
     * @return
     */
    List<ConferenceRecord> findNotExpiredRecord();

    BigDecimal getTime(Integer recordId);

   /* *//**
     * 删除会议记录
     *//*
     void deleteRecord(RecordDto recordDto);*/

    /**
     * 取消会议
     * @param recordDto
     */
    void cancelRecord(RecordDto recordDto);
}
